package com.acme.bankapp.service.email;

/**
 * @author Gregory Sobko
 */
public class DumbEmailTransportImplementation implements EmailTransport {
    @Override
    public void sendEmail(Email email) throws InterruptedException {
        System.out.println("Sending email to " + email.getDestination() + " with topic " + email.getTopic() + "...");

        Thread.sleep(1000);

        System.out.println("Email to " + email.getDestination() +" was sent!");

    }
}
